import { getTranslations } from 'next-intl/server'
import Form from './components/form'

const Page: React.FC = async () => {
  const t = await getTranslations('home')
  return (
    <>
      <Form
        m={{
          title: t('contactForm.title'),
          desc: t('contactForm.desc'),
          namePlaceholder: t('contactForm.namePlaceholder'),
          phonePlaceholder: t('contactForm.phonePlaceholder'),
          emailPlaceholder: t('contactForm.emailPlaceholder'),
          contentPlaceholder: t('contactForm.contentPlaceholder'),
          submit: t('contactForm.submit'),
          modalTitle: t('modalTitle'),
          modalContent: t('modalContent'),
        }}
      />
    </>
  )
}

export default Page
